<?php
Class module_testpanel extends module {
	
	function __call($name, $arg) {
		$this->output();
	}
	
	function signup() {
		$email = request::get("signup_email", "post");
		if ($status = preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email)) {
			// mail
			mail("hongaar@gmail.com", "vdjo.com Testpanel Signup", $email, "From: info@vdjo.com");
		} else {
			// no mail
		}
		$this->attach("status", $status);
		$this->output();
	}
}
?>